package com.owen.server;


import com.owen.pojo.Cake;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CakeServer {

    public List<Cake> findAll();

    public List<Cake> findByCake(Cake cake, Long [] ids);

    public Cake findById(Long id);

    public Cake findCakeById(Long id);

    public Integer deleteBatch(Integer [] ids);

    public Integer deleteById(Long id);

    public Integer updateById(Cake cake);

    public Integer addCake(Cake cake);

    public Integer addFruitsCake(@Param("cakeId") Integer cakeId, @Param("fruitsId") Integer fruitsId);

    public Integer deleteFruitsCake(Integer id);

}